home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / MazeCraze.dxr / 00002_restart button.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  1.3 KB  |  56 lines

  1. property spriteNum
  2. global gShocked, gLifePoints, g1SecAhead, secs, mins, gPaused
  3.  
  4. on mouseEnter
  5.   sprite(spriteNum).member = "restartOver"
  6.   puppetSound(4, "ButtonOver")
  7. end
  8.  
  9. on mouseLeave
  10.   sprite(spriteNum).member = "RestartNorm"
  11.   puppetSound(4, "ButtonOver")
  12. end
  13.  
  14. on mouseUp me
  15.   puppetSound(5, "reset")
  16.   cursor(200)
  17.   sprite(16).pTemp = 1
  18.   sprite(16).pBlink = 25
  19.   sprite(16).pTimePop = 0
  20.   sprite(16).blend = 100
  21.   sprite(44).visible = 1
  22.   sprite(45).visible = 1
  23.   sprite(46).visible = 1
  24.   sprite(55).visible = 1
  25.   g1SecAhead = 0
  26.   secs = 0
  27.   mins = 0
  28.   member("TimeText").text = "Time:" && string(mins) & ":0" & string(secs)
  29.   sprite(50).blend = 0
  30.   sprite(16).pFrame = 1
  31.   sprite(16).pBalloonAlive = 1
  32.   sprite(16).locH = 42
  33.   sprite(16).locV = 404
  34.   sprite(17).locH = 42
  35.   sprite(17).locV = 404
  36.   sprite(16).pLocH = sprite(16).locH
  37.   sprite(16).pLocV = sprite(16).locV
  38.   sprite(16).pBalloonSpeed = 0
  39.   sprite(16).pBalloonDirection = 0.0
  40.   sprite(16).pBalloonDistance = 0.0
  41.   sprite(16).pBalloonRotation = 0.0
  42.   sprite(16).pWait4Step = 0
  43.   gShocked = 0
  44.   gLifePoints = 3
  45.   gPaused = 0
  46.   startTimer()
  47.   sprite(28).pCatchTimer = the timer
  48.   sprite(29).pCatchTimer = the timer
  49.   sprite(30).pCatchTimer = the timer
  50.   sprite(31).pCatchTimer = the timer
  51.   sprite(32).pCatchTimer = the timer
  52.   sprite(33).pCatchTimer = the timer
  53.   puppetSound(5, "fan_wind2")
  54.   go(1)
  55. end
  56.